package wxk.interview.aop.core.jdk.handler;

import java.lang.reflect.InvocationHandler;
import java.util.Date;

/**
 * @author wangxuekai
 * @version 1.0
 * @date 2017/3/5.
 */
public abstract class AbstractHandler implements InvocationHandler {

    private Object target;

    void print(String str){
        System.out.println(new Date().toString()+" "+str);
    }

    public Object getTarget() {
        return target;
    }

    public void setTarget(Object target) {
        this.target = target;
    }
}
